/**
 * 糖果类
 * @param size 大小，尺寸，有1，2，3种
 * @param direction 方向为1和2
 * @param x
 * @param y
 */
Candy = function( size , direction , x , y )
{
	Bitmap.call( this ,  CandyAndGiftFactory.getInstance().getCandy(size) );
	this.size = size ;
	this.direction = direction ;
	this.setX(x);
	this.setY(y);
};
FLASH.extend( Candy , Bitmap);
//Candy.prototype=new Bitmap(); //继承自Bitmap
//Candy.prototype.constructor = Candy ;